CXX = g++
CXXFLAGS = `root-config --cflags --libs` -std=c++11

TARGET = kfprocess.out
SRCS = main.cpp CalculationKit.cpp HitsEvent.cpp KalmanFilterProcess.cpp
OBJS = $(SRCS:.cpp=.o)

$(TARGET): $(OBJS)
	$(CXX) -o $@ $^ $(CXXFLAGS)

%.o: %.cpp
	$(CXX) -c $< $(CXXFLAGS)

clean:
	rm -f $(TARGET) $(OBJS)
